<script setup lang="ts">
  import { useElementLocale } from '@/locales/useLocale';
  let locale = useElementLocale();
  //删除一开始的加载画面
  const html = document.documentElement;
  const appLoading = document.getElementById('app-loading-div');
  appLoading && html.removeChild(appLoading);
  const appLoadingStyle = document.getElementById('app-loading-style');
  appLoadingStyle && html.removeChild(appLoadingStyle);
</script>

<template>
  <ElConfigProvider :locale="locale">
    <slot></slot>
  </ElConfigProvider>
</template>

<style lang="scss"></style>
